package org.codert.domain;

import lombok.Data;
import org.springframework.data.jpa.domain.AbstractPersistable;

import javax.persistence.CascadeType;
import javax.persistence.Entity;
import javax.persistence.ManyToOne;

/**
 * @author: TanJingyu
 * @create: 2021-05-24 17:23
 **/
@Entity
@Data
public class OrderItem extends AbstractPersistable<Long> {

    @ManyToOne(cascade = CascadeType.REFRESH)
    private Order order;

    private Double price;

}
